@extends('layouts.application')

@section('content')

    <!-- content start -->
    <div class="admin-content">
        <div class="admin-content-body">
            <h2 class="am-text-primary title_order">流量订单</h2>
            <hr>

            <form class="am-form-inline am-u-sm-offset-0" role="form" method="get">

                <div class="am-form-group search-set">
                    <input type="text" class="am-form-field am-input-sm" name="order_no" placeholder="订单号" value="{{ Request::input('order_no') }}">
                </div>

                <div class="am-form-group search-set">
                    <input type="text" class="am-form-field am-input-sm" name="charge_num" placeholder="充值号码" value="{{ Request::input('charge_num') }}">
                </div>

                <div class="am-form-group search-set">
                    <input type="text" class="am-form-field am-input-sm" name="user_name" placeholder="用户名" value="{{ Request::input('user_name') }}">
                </div>


                <div class="am-form-group search-set">
                    <span>创建时间</span>
                    <input type="text" class="am-form-field am-input-sm" placeholder="开始时间" id="start_time" name="start_time" data-am-datepicker="{theme: 'success'}" value="{{ Request::input('start_time') }}" readonly/>
                    <span>至</span>
                    <input type="text" class="am-form-field am-input-sm" placeholder="结束时间" id="end_time" name="end_time" data-am-datepicker="{theme: 'success'}" value="{{ Request::input('end_time') }}" readonly/>
                </div>

                <div class="am-form-group search-set">
                    <select data-am-selected="{btnSize: 'sm', searchBox: 1, maxHeight: 360}" name="order_status">

                        <option>订单状态</option>
                        <option value="1" @if(Request::input('order_status')=='1') selected @endif>待付款</option>
                        <option value="2" @if(Request::input('order_status')=='2') selected @endif>付款成功</option>
                        <option value="3" @if(Request::input('order_status')=='3') selected @endif>付款失败</option>
                        <option value="4" @if(Request::input('order_status')=='4') selected @endif>充值成功</option>
                        <option value="5" @if(Request::input('order_status')=='5') selected @endif>充值失败</option>
                        </option>
                    </select>
                </div>


                <div class="am-form-group search-set">
                    <select data-am-selected="{btnSize: 'sm', searchBox: 1, maxHeight: 360}"
                            name="is_count">
                        <option>是否统计</option>
                        <option value="1" @if(Request::input('is_count')=='1') selected @endif >是</option>
                        <option value="0" @if(Request::input('is_count')=='0') selected @endif >否</option>
                    </select>
                </div>

                <div class="am-form-group search-set">
                    <button type="submit"
                            class="am-btn am-btn-secondary am-btn-sm">查 询
                    </button>
                </div>

            </form>
            <hr>

            <div class="am-g">
                <div class="am-u-sm-12">
                    <form class="am-form">
                        <table class="am-table am-table-bordered am-table-striped am-table-compact">
                            <thead>
                            <tr>
                                <th>订单时间</th>
                                <th>订单号</th>
                                <th>商品名称</th>
                                <th>充值号码</th>
                                <th>用户名</th>
                                <th>订单金额</th>
                                <th>交易状态</th>
                                <th>错误信息</th>
                            </tr>
                            </thead>
                            <tbody class="order_table">

                            <tr class="">
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>


                            </tbody>
                        </table>
                        <div class="am-cf">
                            共 15 条记录
                            <div class="am-fr">
                                <ul class="am-pagination">
                                    <li class="am-disabled"><a href="#">&laquo;</a></li>
                                    <li class="am-active"><a href="#">1</a></li>
                                    <li><a href="#">2</a></li>
                                    <li><a href="#">3</a></li>
                                    <li><a href="#">4</a></li>
                                    <li><a href="#">5</a></li>
                                    <li><a href="#">&raquo;</a></li>
                                </ul>
                            </div>
                        </div>


                        <footer class="admin-content-footer">
                            <hr>
                            <p class="am-padding-left">© 2017 xubei, Inc. Licensed under MIT license.</p>
                        </footer>


                        <!-- content end -->
                    </form>
                </div>
            </div>
        </div>
@endsection



